package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    void saveDishAndDishFlavor(DishDto dishDto);

    void deleteDishAndDishFlavors(List<Long> ids);

    DishDto getDishWithFlavors(Long id);

    DishDto updateDishAndFlavors(DishDto dishDto);

    List<DishDto> getDishDtoByCategoryId(Dish dish);
}
